package com.wtf.dsp.admin.core.dao;





import com.wtf.dsp.admin.core.model.DataSourceInfo;

import java.sql.Connection;

/**
 * date: 2022/6/18 10:59
 * @author linhuanyou
 * @email 496558736@qq.com
 * @version 1.0
 */
public interface DataBaseConnection {
    /**
     * 打开数据库连接
     */
    Connection openConnection(DataSourceInfo dataSourceInfo) throws Exception;

    /**
     * 关闭数据库连接
     */
    void closeConnection(Connection connection) throws Exception;

}
